<script setup lang="ts">
defineProps<{ money: number; str: string }>()
const emits = defineEmits<{
  (e: 'update:money', v: number): void
  (e: 'update:str', v: string): void
}>()
</script>
<template>
  <div>我是子组件 - {{ money }} {{ str }}</div>
  <button @click="emits('update:money', 10)">修改</button>
  <button @click="emits('update:str', 'hhh')">修改str</button>
</template>

<style scoped></style>
